'use strict';
module.exports = app => {
  const { INTEGER, TEXT,STRING } = app.Sequelize;
    return app.model.define(
      'policy',
      {
          id: {type: INTEGER, primaryKey: true, autoIncrement: true},
          name: STRING,
          content: TEXT,
          is_del: INTEGER,
          status: INTEGER,
      },
      {
          tableName: 'policy',
          timestamps: true, // 启用时间戳(createdAt, updatedAt)
          updatedAt: 'updated_time', // 不想要 updatedAt
          createdAt: 'create_time', // 想要  createdAt 但是希望名称叫做 created_at
      }
  );
};
